
#include <stdio.h>
#include "STL_Mysql.h"
#include <unistd.h>

int main(int argc, char *argv[])
{

    STL::STL_Mysql *mysql = new STL::STL_Mysql(STL::STL_Mysql::Option("localhost", 3306, "root", "123", "videorelay"));
    mysql->setQueryCallback([]() {
        return "select * from channels";
    });
    mysql->start();

    while (1)
    {
        printf("...\n");
        sleep(1);
    }

    return 0;
}
